<style>
    .layui-form-label{
        width: 130px;
        text-align: left;
    }
</style>
<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label" style="width: 120px"><i class="redstar">*</i>创建奖项</label>
        <div class="layui-input-inline">
            <input type="radio" name="set_award" lay-filter="set_award" lay-skin="primary" title="是" value="1" lay-verify="radiomustbe" lay-reqText="请选择是否创建奖项" checked>
            <input type="radio" name="set_award" lay-filter="set_award" lay-skin="primary" title="否" value="2" lay-verify="radiomustbe" lay-reqText="请选择是否创建奖项">
        </div>
    </div>
</div>
<div class="layui-form-item" id="awardTypeSelect">
    <div class="layui-inline">
        <label class="layui-form-label" ><i class="redstar">*</i>奖项类型</label>
        <div class="layui-input-inline">
            <select name="award_type" class="layui-select" id="awardType" lay-filter="awardType">
                <option value="">请选择</option>
                <option value="1">按参与人数占比</option>
                <option value="2">按实际获奖人数</option>
            </select>
        </div>
    </div>
</div>
<div class="layui-form-item award-type layui-hide">
    <div class="layui-form-mid layui-word-aux" style="padding-top: 20px;margin-left: 40px">注：请按照奖项等级从高到低录入奖项</div>
</div>
<div class="layui-form-item layui-hide" id="awardContent">
    <div class="layui-row">
        <label class="layui-form-label" ><i class="redstar">*</i>奖项名称1</label>
        <div class="layui-input-inline">
            <input type="text" name="award[]" class="layui-input" value="" autocomplete="off" placeholder="请输入奖项名称">
        </div>
        <div class="layui-form-mid">~</div>
        <div class="layui-input-inline">
            <input type="text" name="scores[]"  class="layui-input award_type" value="" autocomplete="off" placeholder="分值占比">
        </div>
        <div class="layui-form-mid percent_score @{{# if(d=='按实际获奖人数'){ }}layui-hide @{{# } }}">
            <span>%</span>
        </div>
        <div class="layui-input-inline" style="width: 50px;display: none">
            <input type="number" name="sort_num[]"  step="1" min="1" max="100" class="layui-input" value="20" lay-verify="required|number" autocomplete="off">
        </div>
        <div class="layui-form-mid">
            <a href="javascript:void(0)" onclick="doTempAdd()"><i class="layui-icon layui-icon-add-circle-fine" style="font-size: 20px;color: #1E9FFF"></i></a>
            <a href="javascript:void(0)" onclick="doTempDel(this)"><i class="layui-icon layui-icon-reduce-circle" style="font-size: 20px;color: #d81e06"></i></a>
        </div>
        <div class="layui-form-mid">
            <a class="tableop" href="javascript:void(0)" onclick="doTempUp(this)">上移</a>
            <a class="tableop" href="javascript:void(0)" onclick="doTempDown(this)">下移</a>
        </div>
    </div>
    <div class="layui-row">
        <label class="layui-form-label" ><i class="redstar">*</i>奖项名称2</label>
        <div class="layui-input-inline">
            <input type="text" name="award[]" class="layui-input" value="" autocomplete="off" placeholder="请输入奖项名称">
        </div>
        <div class="layui-form-mid">~</div>
        <div class="layui-input-inline">
            <input type="text" name="scores[]"  class="layui-input award_type" value="" autocomplete="off" placeholder="分值占比">
        </div>
        <div class="layui-form-mid percent_score @{{# if(d=='按实际获奖人数'){ }}layui-hide @{{# } }}">
            <span>%</span>
        </div>
        <div class="layui-input-inline" style="width: 50px;display: none">
            <input type="number" name="sort_num[]"  step="1" min="1" max="100" class="layui-input" value="19" lay-verify="required|number" autocomplete="off">
        </div>
        <div class="layui-form-mid">
            <a href="javascript:void(0)" onclick="doTempAdd()"><i class="layui-icon layui-icon-add-circle-fine" style="font-size: 20px;color: #1E9FFF"></i></a>
            <a href="javascript:void(0)" onclick="doTempDel(this)"><i class="layui-icon layui-icon-reduce-circle" style="font-size: 20px;color: #d81e06"></i></a>
        </div>
        <div class="layui-form-mid">
            <a class="tableop" href="javascript:void(0)" onclick="doTempUp(this)">上移</a>
            <a class="tableop" href="javascript:void(0)" onclick="doTempDown(this)">下移</a>
        </div>
    </div>
    <div class="layui-row">
        <label class="layui-form-label" ><i class="redstar">*</i>奖项名称3</label>
        <div class="layui-input-inline">
            <input type="text" name="award[]" class="layui-input" value="" autocomplete="off" placeholder="请输入奖项名称">
        </div>
        <div class="layui-form-mid">~</div>
        <div class="layui-input-inline">
            <input type="text" name="scores[]"  class="layui-input award_type" value="" autocomplete="off" placeholder="分值占比">
        </div>
        <div class="layui-form-mid percent_score @{{# if(d=='按实际获奖人数'){ }}layui-hide @{{# } }}">
            <span>%</span>
        </div>
        <div class="layui-input-inline" style="width: 50px;display: none">
            <input type="number" name="sort_num[]"  step="1" min="1" max="100" class="layui-input" value="18" lay-verify="required|number" autocomplete="off">
        </div>
        <div class="layui-form-mid">
            <a href="javascript:void(0)" onclick="doTempAdd()"><i class="layui-icon layui-icon-add-circle-fine" style="font-size: 20px;color: #1E9FFF"></i></a>
            <a href="javascript:void(0)" onclick="doTempDel(this)"><i class="layui-icon layui-icon-reduce-circle" style="font-size: 20px;color: #d81e06"></i></a>
        </div>
        <div class="layui-form-mid">
            <a class="tableop" href="javascript:void(0)" onclick="doTempUp(this)">上移</a>
            <a class="tableop" href="javascript:void(0)" onclick="doTempDown(this)">下移</a>
        </div>
    </div>
</div>
<div class="layui-row layui-hide" id="assistContent">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label"><i class="redstar" style="visibility: hidden">*</i>活动助教</label>
            <div id="tags6"></div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" ><i class="redstar">*</i>报名方式</label>
            <div class="layui-input-inline">
                <select name="join_type" lay-filter="joinType" data-role="joinType" lay-verify="" lay-reqText="报名方式不能为空">
                    <option value="">请选择</option>
                    <option value="1">学生个人</option>
                    <option value="2">学生组队</option>
                    <option value="4">学校个人</option>
                    <option value="3">学校团队</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" ><i class="redstar">*</i>报名截止时间</label>
            <div class="layui-input-inline">
                <input type="text" name="deaddate" id="deaddate" class="layui-input" value="" lay-verify="" lay-reqText="报名截止时间不能为空" autocomplete="off" placeholder="报名截止时间" readonly>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline qz_form layui-hide">
            <label class="layui-form-label" ><i class="redstar">*</i>社区亲子</label>
            <div class="layui-input-inline">
                <input type="radio" name="community_qz" lay-filter="community_qz" lay-skin="primary" title="是" value="1" lay-verify="" lay-reqText="社区亲子不能为空">
                <input type="radio" name="community_qz" lay-filter="community_qz" lay-skin="primary" title="否" value="2" lay-verify="" lay-reqText="社区亲子不能为空">
            </div>
        </div>
        <div class="layui-inline rs_form layui-hide">
            <label class="layui-form-label" ><i class="redstar" style="visibility: hidden">*</i>参与人数</label>
            <div class="layui-input-inline">
                <input type="number" name="join_rs" class="layui-input" value="" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" ><i class="redstar">*</i>评定方式</label>
            <div class="layui-input-inline">
                <select id="evalType" name="eval_type" lay-filter="evalType" data-role="evalType" lay-verify="" lay-reqText="评定方式不能为空">
                    <option value="">请选择</option>
                    <option value="1">线下评审</option>
                    <option value="2">在线评选(作品征集)</option>
                </select>
            </div>
        </div>
        <div class="layui-inline layui-hide ps_file">
            <label class="layui-form-label"><i class="redstar">*</i>作品上传截止时间</label>
            <div class="layui-input-inline">
                <input type="text" name="upload_endtime" id="upload_endtime" class="layui-input" value=""  autocomplete="off" placeholder="作品上传截止时间" readonly>
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-hide ps_file">
        <div class="layui-inline" style="width: 1000px">
            <label class="layui-form-label"><i class="redstar">*</i>评审指标</label>
            <div class="layui-input-inline">
                <button type="button" class="pear-btn pear-btn-primary" loading id="uploadPDFFile">上传附件</button>
                <input type="hidden" name="review_rule_id" id="review_rule_id" lay-verify="" lay-reqText="评审指标不能为空">
            </div>
            <div class="layui-form-mid layui-word-aux" style="padding-top: 20px;">注：文件大小不能超过50MB，格式为.pdf。</div>
        </div>
        <div class="layui-form-item layui-hide" id="file_pdf_preview"></div>
    </div>
    <div class="layui-form-item layui-hide ps_file">
        <div id="homework-content">
            <label class="layui-form-label" ><i class="redstar">*</i>作品要求</label>
            <div class="layui-input-block">
                <label class="layui-form-label" style="width: 40px;color: #02A7F0">作品1:</label>
                <div class="layui-input-inline">
                    <select name="homework_type[]" class="layui-select" lay-filter="homeworkType">
                        <option value="">作品类型</option>
                        <option value="10">视频</option>
                        <option value="20">图片</option>
                        <option value="30">WORD</option>
                        <option value="50">EXCEL</option>
                        <option value="60">PDF</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <input type="number" name="homework_limit[]" value="" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" class="layui-input" placeholder="请输入限制大小" >
                </div>
                <div class="layui-form-mid">MB</div>
                <div class="layui-form-mid">
                    <a href="javascript:void(0)" onclick="doHomeworkAdd()"><i class="layui-icon layui-icon-add-circle-fine" style="font-size: 20px;color: #1E9FFF"></i></a>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" ><i class="redstar" style="visibility: hidden">*</i>导学资源</label>
            <div class="layui-input-inline">
                <select name="intro_res" lay-filter="introRes" data-role="introRes">
                    <option value="">请选择</option>
                    <option value="1">在线链接</option>
                    <option value="2">上传附件</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-hide" id="res_url">
        <div class="layui-inline">
            <label class="layui-form-label" style="visibility: hidden">*导学资源</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" name="res_url" id="res_intro_url" autocomplete="off" placeholder="请输入链接地址">
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-hide" id="upload_file">
        <div class="layui-inline" style="width: 1000px">
            <label class="layui-form-label" style="visibility: hidden">*导学资源</label>
            <div class="layui-input-inline">
                <button type="button" class="pear-btn pear-btn-primary" loading id="uploadFile">上传附件</button>
                <input type="hidden" name="intro_res_file" id="intro_res_file">
            </div>
            <div class="layui-form-mid layui-word-aux" style="padding-top: 20px;">注：支持.docx / .pdf / .xlsx/ .mp3 / .mp4 / .zip，不超过100M。</div>
        </div>
        <div class="layui-form-item layui-hide" id="file_preview"></div>
    </div>
</div>
